﻿using System;
using System.Reflection;

namespace Sigil.NonGeneric
{
	public partial class Emit
	{
		/// <summary>
		/// Pops a value from the stack and stores it in the given field.
		///
		/// If the field is an instance member, both a value and a reference to the instance are popped from the stack.
		/// </summary>
		public Emit StoreField(FieldInfo field, Boolean isVolatile = false, Int32? unaligned = null)
		{
			InnerEmit.StoreField(field, isVolatile, unaligned);
			return this;
		}
	}
}